package com.dj.mingkong.common.exception;

/**
 * @author zenglonghui
 * @date: 2022/5/17 18:00
 */
public class SystemException extends BaseRuntimeException {
    public SystemException(String code, String message) {
        super(code, message);
    }

    public SystemException(String code, Throwable e) {
        super(code, e);
    }

    public SystemException(String code, String message, Throwable e) {
        super(code, message, e);
    }

    public SystemException(Throwable ex) {
        super(ExceptionCode.SYSTEM_ERR.getCode(), ex.getMessage(), ex);
    }

    public SystemException(String info) {
        super(ExceptionCode.FAIL.getCode(), info);
    }
}
